package com.originalpoint.origin_server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "Dish" ,description = "菜品表")
public class Dish {
    @TableId(type = IdType.AUTO)
    @Schema(name = "dishId" ,description = "菜品ID")
    private Integer dishId;

    @Schema(name = "dishName" ,description = "菜品名字")
    private String dishName;

    @Schema(name = "dishPrice" ,description = "菜品价格")
    private Double dishPrice;

    @Schema(name = "quantityLeft" ,description = "菜品剩余数量")
    private Integer quantityLeft;

    @Schema(name = "dishDescription" ,description = "菜品描述")
    private String dishDescription;

    @Schema(name = "d_merId" ,description = "关联的商家ID")
    private Integer d_merId;

    @Schema(name = "dishImg" ,description = "菜品图片")
    private String dishImg;

    @TableField(exist = false)
    @Schema(name = "merName" ,description = "关联的商家名字")
    private String merName;
}
